package com.gai.web.video.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gai.web.video.entity.GVideo;
import com.gai.web.video.service.GVideoService;
import com.gai.web.video.mapper.GVideoMapper;
import com.gai.web.video.vo.VideoByTypeVo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Captain
* @description 针对表【g_video】的数据库操作Service实现
* @createDate 2022-05-25 15:11:50
*/
@Service
public class GVideoServiceImpl extends ServiceImpl<GVideoMapper, GVideo>
    implements GVideoService{

    @Override
    public IPage<GVideo> videoPage(Page<GVideo> page, QueryWrapper<GVideo> queryWrapper) {
        return baseMapper.videoPage(page,queryWrapper);
    }
    @Override
    public List<VideoByTypeVo> getVideoByType(){
        return baseMapper.getVideoByType();
    }
}




